package com.baizhi.generate;


import com.baizhi.CmfzApplication;
import com.baizhi.dao.UserDao;
import com.baizhi.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = CmfzApplication.class)
public class testMultipleSql {

    @Resource
    private UserDao userDao;
    @Resource
    private UserService userService;

    @Test
    public void m(){
        System.out.println(userDao.selectUserEchartsBySex());
        System.out.println(userDao.selectUserEchartsByRegister(15,21));
    }

    @Test
    public void m2() throws InterruptedException {
        System.out.println(userService.findUserEcharts());
    }
}
